Repository navigation
Add Python code coverage reporting with Cobertura XML output - #532
Open
pobonomo with code-coverage-agent[bot] wants to merge 1 commit into
Open
pobonomo with code-coverage-agent[bot] wants to merge 1 commit into
pobonomo with code-coverage-agent[bot] wants to merge 1 commit into
Conversation
pobonomo
approved these changes
Aug 5, 2026
Code coverage overviewLanguages: Python Python / code-coverage-agent
Line coverage data for the main branch is not yet available. View coverage of the 10 most covered files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Co-authored-by: pobonomo <15269857+pobonomo@users.noreply.github.com>
pobonomo
force-pushed
the
code-coverage-agent/setup-code-coverage-reporting
branch
from
November 21, 2026 12:46
25b352d to
58a0e66
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrates
pytest-covcoverage reporting into the existing CI workflows, producing Cobertura XML reports and uploading them to GitHub's code coverage API for PR annotations and trend tracking.Coverage configuration
setup.cfg— adds[coverage:run](branch coverage oversrc/gurobi_ml) and[coverage:report]sections so coverage settings are respected by IDEs and local runstox.ini— adds--cov=src/gurobi_ml --cov-report=xml:coverage.xmlto theall_depsenv (the broadest test run covering all ML frameworks);pytest-covwas already a dep in[base]CI integration
Both PR and push workflows are augmented with a two-job upload pattern:
testjob, gated to thepy312/gurobi13matrix entry to avoid artifact name collisions and redundant uploadsupload-coverage-pythonjob downloads the artifact and callsactions/upload-code-coverage@v1push.yml(default-branch baseline):PR_nolicense.yml(PR feedback):pull-requests: readadded to the upload job so it can resolve the open PR number from a branch push